import Vue from 'vue'
import App from './App.vue'
import store from './store'
import '@@/icons'
import './permission'
import Element from 'element-ui'
import '@@/style/theme/index.css'
import '@/assets/style/iconfont/iconfont.css'
import '@/assets/style/common.scss'
import globalComponents from '@/components'
import globalFilters from '@/filters'
import router from '@/router'
import ECharts from 'vue-echarts'
import PlainSelect from '@/components/PlainSelect/index.vue'
import PlainTabs from '@/components/PlainTabs/index.vue'
import NbTable from '@/components/NbTable/index.vue'
import CardPanel from '@/components/CardPanel/index.vue'
import CommonUpload from '@/components/Uploader/index.vue'
import format from 'vue-text-format'
Vue.use(format)
Vue.component('common-upload', CommonUpload)
Vue.component('v-chart', ECharts)
Vue.component('plain-select', PlainSelect)
Vue.component('plain-tabs', PlainTabs)
Vue.component('nb-table', NbTable)
Vue.component('card-panel', CardPanel)
globalComponents(Vue)
globalFilters(Vue)
Vue.use(Element, {
  size: 'small'
})

Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
